package com.zhangxun.feign;

import com.zhangxun.domain.User;
import com.zhangxun.domain.UserAddr;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient("member-service")
public interface OrderMemberFeign {


    @GetMapping("/p/address/defaultById/{wxUserId}")
    UserAddr selectDefaultAddr(@PathVariable("wxUserId") String wxUserId);

    @GetMapping("/p/user/selectPhoneNum/{wxUserId}")
    User selectPhoneNum(@PathVariable String wxUserId);
}
